package com.example.schedulemanager.utils;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.example.schedulemanager.utils.ScheduleNotificationService;

public class ScheduleNotificationReceiver extends BroadcastReceiver {
    
    @Override
    public void onReceive(Context context, Intent intent) {
        Intent serviceIntent = new Intent(context, ScheduleNotificationService.class);
        serviceIntent.putExtra("schedule_id", intent.getIntExtra("schedule_id", -1));
        serviceIntent.putExtra("schedule_title", intent.getStringExtra("schedule_title"));
        serviceIntent.putExtra("schedule_description", intent.getStringExtra("schedule_description"));
        context.startService(serviceIntent);
    }
} 